Get the length of an ArrayΒΆ
len(A)
Get the length of an array.
Expected output:
Length of the array is:
5
from array import array
A = array('i', [10,20,30,40,50])
print("Length of the array is:")
print(len(A)) # 5